﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.DocModel.APIParam
{
    public class ShareToUserModel: BaseParam
    {
        /// <summary>
        ///  被分享的用户ID
        /// </summary>
        [Required]
        public string keyId { get; set; }
        /// <summary>
        ///  被分享的文档ID
        /// </summary>
        [Required]
        public int fileId { get; set; }
    }

    public class ShareUserName: BaseParam
    {
        /// <summary>
        ///  待查询的用户名
        /// </summary>
        [Required(ErrorMessage = "查询的用户名不能为空！")]
        public string userName { get; set; }
    }
    public class ShareUserList
    {
        /// <summary>
        ///  用户名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        ///  用户内部编码
        /// </summary>
        public string keyId { get; set; }
    }
    public class FileSynchronModel: BaseParam
    {
        /// <summary>
        ///  作品ID
        /// </summary>
        [Required]
        public int file_id { get; set; }
    }
}
